//
//  ConnectionResizeView.h
//  DemoConnectionBetweenShapes
//
//  Created by duc nguyen van on 8/21/11.
//  Copyright 2011 STU. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "QuartzCore/QuartzCore.h"

@protocol delegateConnectionRizeView

-(void)tapOnSubView:(UITapGestureRecognizer*)tap andSize:(CGSize)size andSubView:(UIView*)SView;
-(void)moveWithPan:(UIPanGestureRecognizer*)pan andID:(int)intID;
-(void)panOnThisView:(UIPanGestureRecognizer*)pan andVexter:(CGPoint)vex;
-(void)tapOnView:(UITapGestureRecognizer*)tap;

@end


@interface ConnectionResizeView : UIView <UIGestureRecognizerDelegate>{
	UIView *VOne;
	UIView *VTwo;
	UIView *VThree;
	UIView *VFour;
	UIView *VFive;
	UIView *VSix;
	UIView *VSeven;
	UIView *VEight;
	
	UIView *selectedSubView;
	
	id<delegateConnectionRizeView> delegate;
	
	//forVexter
	CGPoint BVexter;
	CGPoint MVexter;
}

@property (assign) id<delegateConnectionRizeView> delegate;

@property (nonatomic,retain) UIView *VOne;
@property (nonatomic,retain) UIView *VTwo;
@property (nonatomic,retain) UIView *VThree;
@property (nonatomic,retain) UIView *VFour;
@property (nonatomic,retain) UIView *VFive;
@property (nonatomic,retain) UIView *VSix;
@property (nonatomic,retain) UIView *VSeven;
@property (nonatomic,retain) UIView *VEight;

@end
